<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
    if (80 == request.getServerPort())
    {
        basePath = request.getScheme() + "://"
                + request.getServerName() + path + "/";
    }
    response.setHeader("Pragma", "no-cache");
    response.setDateHeader("Expires", 0);
    response.setHeader("Cache-Control",
            "no-store,no-cache,must-revalidate");
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"  "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
<script type="text/javascript" src="edit/jquery-1.4.4.min.js"></script>
	
		<base href="<%=basePath%>">

		<title>问题信息</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<script type="text/javascript"
			src='<%=request.getContextPath()%>/js/js.js'></script>
<%-- 	<script type="text/javascript"
		src='<%=request.getContextPath()%>/js/jquery-1.7.1.js'></script>
 --%>
 		<style type="text/css">
td {
	vertical-align: top;
}
</style>
	</head>

	<body>
		<div>
			<jsp:include page="./head.jsp"></jsp:include>
			<jsp:include page="./list.jsp"></jsp:include>
			<form action="./saveQuest.action" method="post"
				name="updatequestSubmit">
				<div class="bodycontent">
					<table style="margin: 0 auto; width: 680px; margin-top: 10px;">
						<tr>
							<td class="textalignright">
								<label>
									编号：
								</label>
							</td>
							<td>
								<span><input name="q_id" placeholder="此框不能输入" type="text"
										class="basic_input addquestwidth" readonly="readonly"
										value="<s:property value="#request.question.q_id" />" /></span>
							</td>
						</tr>
						<tr>
							<td class="textalignright">
								<label>
									问题：
								</label>
							</td>
							<td>
								<textarea  name="quest" id="quest" rows="3"
								 basic_input addquestwidth " cols="50"
									><s:property value="#request.question.q_des"/></textarea>
							</td>
						</tr>
						<tr>
							<td class="textalignright">
								<label>
									A答案：
								</label>
							</td>
							<td>
								<textarea name="questA" id="questA" rows="2"
									class="basic_input addquestwidth" cols="50"
									value=""><s:property value="#request.question.q_result_A" /></textarea>
							</td>
						</tr>
						<tr>
							<td class="textalignright">
								<label>
									B答案：
								</label>
							</td>
							<td>
								<textarea name="questB" id="questB" rows="2"
									class="basic_input addquestwidth" cols="50"
									value=""><s:property value="#request.question.q_result_B" /></textarea>
							</td>
						</tr>
						<tr>
							<td class="textalignright">
								<label>
									C答案：
								</label>
							</td>
							<td>
								<textarea name="questC" id="questC" rows="2"
									class="basic_input addquestwidth" cols="50"
									value=""><s:property value="#request.question.q_result_C" /></textarea>
							</td>
						</tr>
						<tr>
							<td class="textalignright">
								<label>
									D答案：
								</label>
							</td>
							<td>
								<textarea name="questD" id="questD" rows="2"
									class="basic_input addquestwidth" cols="50"
									value=""><s:property value="#request.question.q_result_D" /></textarea>
							</td>
						</tr>
						<tr>
							<td class="textalignright">
								<label>
									难易程度：
								</label>
							</td>
							<td>
								<select name="q_type" id="q_type" style="margin-top: 10px;">
									<option value="3"
										<s:if test="#request.question.q_type == 3">selected="selected"</s:if>>
										困难
									</option>
									<option value="2"
										<s:if test="#request.question.q_type == 2">selected="selected"</s:if>>
										一般
									</option>
									<option value="1"
										<s:if test="#request.question.q_type == 1">selected="selected"</s:if>>
										简单
									</option>
								</select>
							</td>
						</tr>
						<tr>
							<td class="textalignright">
								<label>
									正确答案：
								</label>
							</td>
							<td>
								<select name="q_key" id="q_key" style="margin-top: 10px;">
									<option value="A" id="A"
										<s:if test="#request.question.q_key_index == 1">selected="selected"</s:if>>
										A
									</option>
									<option value="B" id="B"
										<s:if test="#request.question.q_key_index == 2">selected="selected"</s:if>>
										B
									</option>
									<option value="C" id="C"
										<s:if test="#request.question.q_key_index == 3">selected="selected"</s:if>>
										C
									</option>
									<option value="D" id="D"
										<s:if test="#request.question.q_key_index == 4">selected="selected"</s:if>>
										D
									</option>
								</select>
							</td>
						</tr>
						<tr>
							<td colspan="2" style="text-align: center;">
								<a onclick="updatequestinfoSubmit();" class="button"  id="btn">保存</a>
							</td>
						</tr>
					</table>
					<br />
					<br />
					<br />
					<br />
				</div>
			</form>
			
		</div>
	
	</body>
</html>
